package de.hohenheim.modell;

import de.hohenheim.view.FigureFactory;
import de.hohenheim.view.map.RoomMap;
import de.hohenheim.view.room.RoomFigure;

public class Room {
  
  RoomFigure room;
  State state;
  String name;
  double length, width, height;
  public Room(RoomMap map, String roomName, int x, int y, int width, int height, double length, double widt, double heig) {
	  room = FigureFactory.createRoom(map, roomName, x, y, width, height, this);
	  name = roomName;
	  state = new State(this);
	  this.length = length;
	  this.width = widt;
	  this.height = heig;
  }
  
  public RoomFigure getRoomFigure() {
	  return this.room;
  }
  
  public State getState() {
	  return this.state;
  }
  
  public String toString() {
	  return this.name;
  }
  
  public Double getVolume() {
	  return (this.length * this.width * this.height);
  }
}
